from settings.settings import Path
from pathlib import Path

def write_txt(file, data):
    """
    数据写入txt文件，数据之间以'#'分隔
    :param file: 写入文件
    :param data: 写入数据
    :return:
    """
    with open(file, 'w', encoding='utf-8') as f:
        f.write(data+'#')
BASE_DIR = Path(__file__).resolve().parent.parent
FILE_PATH = Path.joinpath(BASE_DIR, "testcases", "getToken.yaml")
print(BASE_DIR)
print(FILE_PATH)